package com.example.redis.demo.response;

import java.util.List;

public class GetMyNearByResponse extends BaseResponse {


    private List<NearByUser> data;

    public GetMyNearByResponse(String code, String message, List<NearByUser> data) {
        super(code, message);
        this.data = data;
    }



    public List<NearByUser> getData() {
        return data;
    }

    public void setData(List<NearByUser> data) {
        this.data = data;
    }

    public static class NearByUser {

        private String userName;

        private Double distanceM;

        private Long userId;

        private Double longitude;

        private Double latitude;

        public Double getLongitude() {
            return longitude;
        }

        public void setLongitude(Double longitude) {
            this.longitude = longitude;
        }

        public Double getLatitude() {
            return latitude;
        }

        public void setLatitude(Double latitude) {
            this.latitude = latitude;
        }

        public String getUserName() {
            return userName;
        }

        public void setUserName(String userName) {
            this.userName = userName;
        }

        public Double getDistanceM() {
            return distanceM;
        }

        public void setDistanceM(Double distanceM) {
            this.distanceM = distanceM;
        }

        public Long getUserId() {
            return userId;
        }

        public void setUserId(Long userId) {
            this.userId = userId;
        }
    }

}
